amigo
Class AmigoDummy

java.lang.Object
  extended by amigo.AmigoDummy
All Implemented Interfaces:
java.io.Serializable, RAExternalAgentInterface

public class AmigoDummy
extends java.lang.Object
implements java.io.Serializable, RAExternalAgentInterface

Dummy version of the Amigo robot for testing purposes; does not require the Amigo libraries.

See Also:
Serialized Form

Constructor Summary
AmigoDummy()
           
 
Method Summary
 void connect()
          Connect to the external agent.
 void disconnect()
          Disconnect from the external agent.
 RADataType getCameraValue()
          Return a camera value (a.k.a.
 java.lang.String[] getSensorIDs()
          Provide a list of sensor names.
 RADataType getSensorValue(java.lang.String sensor_id)
          Return the sensor value of the sensor indicated with the id specified.
 void initRobot()
           
 void initRobot(int maxSpeed)
           
 void robotGo(double speed, double angle)
          Go somewhere.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AmigoDummy

public AmigoDummy()
Method Detail

initRobot

public void initRobot()

initRobot

public void initRobot(int maxSpeed)

connect

public void connect()
Description copied from interface: RAExternalAgentInterface
Connect to the external agent.

Specified by:
connect in interface RAExternalAgentInterface

disconnect

public void disconnect()
Description copied from interface: RAExternalAgentInterface
Disconnect from the external agent.

Specified by:
disconnect in interface RAExternalAgentInterface

robotGo

public void robotGo(double speed,
                    double angle)
Description copied from interface: RAExternalAgentInterface
Go somewhere.

Specified by:
robotGo in interface RAExternalAgentInterface

getSensorIDs

public java.lang.String[] getSensorIDs()
Description copied from interface: RAExternalAgentInterface
Provide a list of sensor names.

Specified by:
getSensorIDs in interface RAExternalAgentInterface

getSensorValue

public final RADataType getSensorValue(java.lang.String sensor_id)
                                throws RAException
Return the sensor value of the sensor indicated with the id specified.

Specified by:
getSensorValue in interface RAExternalAgentInterface
Throws:
RAException

getCameraValue

public RADataType getCameraValue()
                          throws RAException
Return a camera value (a.k.a. NOTHING).

Throws:
RAException